Optimal. Leaf size=26 \[ \frac {a x^2}{2}-\frac {b \tanh ^{-1}\left (\cosh \left (c+d x^2\right )\right )}{2 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 26, normalized size of antiderivative = 1.00, number of steps
used = 4, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {14, 5545, 3855}
\begin {gather*} \frac {a x^2}{2}-\frac {b \tanh ^{-1}\left (\cosh \left (c+d x^2\right )\right )}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 14
Rule 3855
Rule 5545
Rubi steps
\begin {align*} \int x \left (a+b \text {csch}\left (c+d x^2\right )\right ) \, dx &=\int \left (a x+b x \text {csch}\left (c+d x^2\right )\right ) \, dx\\ &=\frac {a x^2}{2}+b \int x \text {csch}\left (c+d x^2\right ) \, dx\\ &=\frac {a x^2}{2}+\frac {1}{2} b \text {Subst}\left (\int \text {csch}(c+d x) \, dx,x,x^2\right )\\ &=\frac {a x^2}{2}-\frac {b \tanh ^{-1}\left (\cosh \left (c+d x^2\right )\right )}{2 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(57\) vs. \(2(26)=52\).
time = 0.03, size = 57, normalized size = 2.19 \begin {gather*} \frac {a x^2}{2}-\frac {b \log \left (\cosh \left (\frac {c}{2}+\frac {d x^2}{2}\right )\right )}{2 d}+\frac {b \log \left (\sinh \left (\frac {c}{2}+\frac {d x^2}{2}\right )\right )}{2 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.64, size = 30, normalized size = 1.15
method | result | size |
derivativedivides | \(\frac {\left (d \,x^{2}+c \right ) a +b \ln \left (\tanh \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )\right )}{2 d}\) | \(30\) |
default | \(\frac {\left (d \,x^{2}+c \right ) a +b \ln \left (\tanh \left (\frac {d \,x^{2}}{2}+\frac {c}{2}\right )\right )}{2 d}\) | \(30\) |
risch | \(\frac {a \,x^{2}}{2}+\frac {b \ln \left ({\mathrm e}^{d \,x^{2}+c}-1\right )}{2 d}-\frac {b \ln \left ({\mathrm e}^{d \,x^{2}+c}+1\right )}{2 d}\) | \(42\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.26, size = 25, normalized size = 0.96 \begin {gather*} \frac {1}{2} \, a x^{2} + \frac {b \log \left (\tanh \left (\frac {1}{2} \, d x^{2} + \frac {1}{2} \, c\right )\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 55 vs.
\(2 (22) = 44\).
time = 0.38, size = 55, normalized size = 2.12 \begin {gather*} \frac {a d x^{2} - b \log \left (\cosh \left (d x^{2} + c\right ) + \sinh \left (d x^{2} + c\right ) + 1\right ) + b \log \left (\cosh \left (d x^{2} + c\right ) + \sinh \left (d x^{2} + c\right ) - 1\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int x \left (a + b \operatorname {csch}{\left (c + d x^{2} \right )}\right )\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 49 vs.
\(2 (22) = 44\).
time = 0.41, size = 49, normalized size = 1.88 \begin {gather*} \frac {{\left (d x^{2} + c\right )} a}{2 \, d} - \frac {b \log \left (e^{\left (d x^{2} + c\right )} + 1\right )}{2 \, d} + \frac {b \log \left ({\left | e^{\left (d x^{2} + c\right )} - 1 \right |}\right )}{2 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.12, size = 47, normalized size = 1.81 \begin {gather*} \frac {a\,x^2}{2}-\frac {\mathrm {atan}\left (\frac {b\,{\mathrm {e}}^{d\,x^2}\,{\mathrm {e}}^c\,\sqrt {-d^2}}{d\,\sqrt {b^2}}\right )\,\sqrt {b^2}}{\sqrt {-d^2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________